package cn.tac.test.spring.autowired.bean.autowire;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author tac
 * @since 24/10/2017
 */
@Component
public class AWFoo {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Value("${foo1}")
    protected String foo1;

    @Override
    public String toString() {
        return "AWFoo{" +
                "foo1='" + foo1 + '\'' +
                '}';
    }
}
